import { View } from "../../../mvc/core/View";
import { GlobalClass } from "../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../resource/ImagesConst";
import { FilterConst } from "../../../component/gconst/FilterConst";
import { GTextFormat } from "../../../common/GTextFormat";
import { FontUtil } from "../../../common/font/FontUtil";
//class RestHintIcon
    
    export  class RestHintIcon extends View
    {
        constructor()
        {
            super();
            this._requestArr = [];
            this.createChildren();
            return;
        }

        /* internal  */createChildren(): void
        {
            mouseChildren = false;
            buttonMode = true;
            var loc1=GlobalClass.getBitmap(ImagesConst.RestHintIcon);
            addChild(loc1);
            this._numTxt = new Object /* flash.text.TextField */();
            this._numTxt.width = loc1.width;
            this._numTxt.height = 10;
            this._numTxt.y = loc1.height - 14;
            this._numTxt.autoSize = flash.text.TextFieldAutoSize.RIGHT;
            this._numTxt.selectable = false;
            this._numTxt.mouseEnabled = true;
            this._numTxt.filters = [FilterConst.glowFilter];
            addChild(this._numTxt);
            this._numTf = new GTextFormat(FontUtil.songtiName, 10, 16777215);
            return;
        }

        public set requestArr(arg1: Array<any>)
        {
            this._requestArr = arg1;
            this._numTxt.text = this._requestArr.length.toString();
            this._numTxt.setTextFormat(this._numTf);
            return;
        }

        /* internal */ /* var */_numTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_numTf: Object /* flash.text.TextFormat */;

        /* internal */ /* var */_requestArr: Array<any>;
    }
